<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="author" content="wangzhichao">
		<script LANGUAGE="javascript" src="../script/common.js" type="text/javascript"></script>
	<script language="javascript" type="text/javascript">
	var qt = {};					//数据表格对象
	var parentId = getPara("parentId");		//接收表单id
	var vip = getPara("vip");
	//初始化数据
	function load(){
		if(vip=="vip"){
			$("show").innerHTML="<label>帐号编号</label> <span id='uniqueId'></span>"
		}else{
			$("show").innerHTML="&nbsp;"
		}		
		parent.dialog.hideBar();
		createTable();
	}
	//显示明细方法
	function createTable(){
	 	DWR.call("customerService.getCardUserInfo",parentId,function(personal){
			personal.currentLevel = Common.getText("customer_level",personal.currentLevel);
			personal.oilNo = Common.getText("oil_number",personal.oilNo);
			personal.balance = Format.fenToYuan(personal.balance);
			personal.spareBalance = Format.fenToYuan(personal.spareBalance);
			personal.spareLoyaltyBalance = parseInt(personal.spareLoyaltyBalance);
			personal.loyaltyBalance = Format.fenToYuan(personal.loyaltyBalance);								
			Common.showDetail("particular",personal);
		});
	}
	</script>
</head>
	
<body onload="load()">
		<!--明细静态显示部分-->
	<div id="particular">
		<form id='personalform' name='personalform'>
			<input type="hidden" id="id" name="id">
			<div class="form">
				<div class="formTitle">个人帐户明细</div>
				<table cellSpacing=0 cellPadding=4 width="100%" border=0 class="viewTable col2">
					<tr>
						<td><label>卡&nbsp;&nbsp;&nbsp;&nbsp;号</label> <span id="asn"></span></td>
					    <td><label>押&nbsp;&nbsp;&nbsp;&nbsp;金</label> <span id="foregift"></span></td>	
					</tr>	
					<tr>
						<td><label>客户名称</label> <span id="name" ></span></td>
						<td><label>客户证件号</label> <span id="idno"></span></td>
					</tr>
					<tr>										
						<td><label>客户级别</label> <span id="currentLevel"></span></td>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td><label>车辆型号</label> <span id="carModel"></span></td>							
						<td><label>车辆牌照</label> <span id="carLicense"></span></td>
					</tr>
					<tr>	
						<td><label>商品大类限制</label> <span id="merchandiseLimit"></span></td>
						<td><label>油品品号</label> <span id="oilNo"></span></td>
					</tr>	
                    <tr>	
						<td><label>余&nbsp;&nbsp;&nbsp;&nbsp;额</label> <span id="balance"></span></td>
						<td><label>备用金余额</label> <span id="spareBalance"></span></td>
					</tr>	
                    <tr>	
						<td><label>积分余额</label> <span id="spareLoyaltyBalance"></span></td>
						<td><label>备用金积分余额</label> <span id="loyaltyBalance"></span></td>
					</tr>		
					<tr>	
					    <td><label>备&nbsp;&nbsp;&nbsp;&nbsp;注</label> <span id="notes"></span></td>
						<td id="show"></td>
					</tr>	
				</table>
			</div>
			<p><button type="button" onclick="window.close();">返   回</button></p>
		</form>
	</div>
	</body>
</html>
